<% content_for :head do %>
	<script language="JavaScript">
function setVisibility(id, visibility) {
document.getElementById(id).style.display = visibility;
}
</script>
<% end %>

<div id="tabs_reports">
      <ul>
        <li></li>
        <li class="on"><span><%= _('Pending Reports') %></span></li>
        <li class="off"><%= link_to _('<span>Completed Reports</span>'), 'completed' %></li>
		<% if current_user.is_admin? %>
			<li class="button1"><%= link_to '<span/>', 'new' %></li>
		<% end %>
      </ul>
 </div>
 
 <div class="clear"></div>

<div id="maintable">
		<%= render :partial => 'reports', :collection => @reports_groups, :as => :reports, :locals => {:download_col => false} %>
		<% unless current_user.is_only_admin? then %> <span class="title_one"><%= _('Administrate Reports') %></span> <% end %>
		<%= render :partial => 'admin_reports', :locals => { :reports => @all_reports_groups } if current_user.is_admin %>
	
		<%= render :partial => 'reports_xb_status', :collection => @reports_xb_status_groups, :as => :reports_xb_status %>
</div>	
